package cn.com.ghy.android.widget;

import android.app.Activity;
import android.os.Bundle;
import android.text.Html;
import android.text.method.LinkMovementMethod;
import android.widget.TextView;

/**
 * @软件著作权:金红叶纸业集团有限公司
 * @系统名称:SFA系统
 * @Description:关于系统信息
 * @author wuz  @date 2011-6-2 13:32:44
 * @版本历史:v1.0
 * @Copyright:Copyright (c) 2011-2012 
 */

public class AboutSystem extends Activity {

	private TextView labTxtHelpCenter = null;
	private TextView labTxtVersions = null;

	private String versions = "1.0";

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		this.setContentView(R.layout.about);
		findView();
		init();
	}

	private void findView() {
		labTxtHelpCenter = (TextView) this.findViewById(R.id.labTxtHelpCenter);
		labTxtVersions = (TextView) this.findViewById(R.id.labTxtVersions);
	}

	private void init() {
		labTxtHelpCenter
				.setText(Html
						.fromHtml("<a href=\"http://csms1.ghy.com.cn/pda/\">http://csms1.ghy.com.cn/pda/</a>"));
		labTxtHelpCenter.setMovementMethod(LinkMovementMethod.getInstance());
		try {
			versions = getPackageManager().getPackageInfo(getPackageName(), 0).versionName;
		} catch (Exception e) {
			e.printStackTrace();
		}
		labTxtVersions.setText(versions);
	}
}
